package thinkingInJava.io;
// page 548
//: io/Echo.java
//How to read from standard input.
//{RunByHand}
import java.io.*;

public class Echo {
	public static void main(String[] args)
			throws IOException {
		BufferedReader stdin = new BufferedReader(
				new InputStreamReader(System.in));// System.in 需要自己包装,而System.out/err则不用
		String s;
		while((s = stdin.readLine()) != null && s.length()!= 0)
			System.out.println(s);
		// An empty line or Ctrl-Z terminates the program
	}
} ///:~
